const Base = require('./base.js');
module.exports = class extends Base {
	get tablePrefix() {
		return 'sys_';
	}
	
	extra(data) {
		
		const obj = {};
		for (let i in data) {
			if(Number(data[i].type) == 2) {
				data[i].extra = data[i].extra.replace(/\r/g,'').split('\n');
				const obj = {};
				data[i].extra.forEach(n => {
					n = n.split(':');
					obj[n[0]] = n[1];
				});
				data[i].extra = obj;
			}
			
		}
		return data;
		
	}
	
};